package com.world.cat.dao.sys;

import com.world.cat.model.sys.PrivateFile;
import com.world.common.util.CollectionUtil;
import com.world.core.dao.GenericRepository;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.List;
import java.util.Set;

/**
 * Created by xinyu.qiu on 2017/2/25.
 */
@Repository
public interface PrivateFileDao extends GenericRepository<PrivateFile, String> {

    PrivateFile findByFileKey(String fileKey);

    List<PrivateFile> findByIdIn(Collection<String> fileIds);

    List<PrivateFile> findByFileKeyIn(Set<String> fileKey);

    List<PrivateFile> findByIdInAndUsername(Set<Long> ids, String username);
}
